// ================================================================设置网络请求根路径
let baseUrl = (function () {
  // 请求根路径
  let urlStr = ''
  if (process.env.NODE_ENV === 'development') {
	urlStr='http://192.168.0.109:9066' 
  } else {
	  // 正式环境
	// urlStr='http://10.40.92.236:9066' 
  }
  return urlStr
})()


//图片
let uploadFileImgUrl = (function () {
  let urlStr = ''
  if (process.env.NODE_ENV === 'development') {
	 urlStr = 'http://192.168.0.109:9066' 
  } else {
    // let IP_v2 = window.location.protocol + '//' + window.location.hostname
    // let port_v2 = window.location.port
    // let DZ_v2 = IP_v2 + ':' + port_v2
    // urlStr = DZ_v2 
    // console.log('图片地址', urlStr)
    // urlStr = 'https://zm.5pa.com' //小程序
  }
  return urlStr
})()

export default {
  baseUrl,
  uploadFileImgUrl
}
